/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

/**
 * 说明：
 * Entity Name 操作日志
 * @Author：李智深
 * @Date：2012-03-14
 */
@Entity
@Table(name="ruipeng_tb_TOpLog")
public class TOpLog implements Serializable{

	private static final long serialVersionUID = 1L;

	private String LogID;//日志编号CHAR(15) PK
	
	private String Operate;//操作VARCHAR(256)
	
	private Date HappenTime;//操作日期DATETIME
	
	private TEmployee TEmployee;//员工
	
	private String Operatestr;//填写操作内容，用于查询，不入数据库


	@Id
	@Column(name = "LogID", length=15)
	public String getLogID() {
		return LogID;
	}

	public void setLogID(String logID) {
		LogID = logID;
	}

	@Column(name = "Operate", length=256)
	public String getOperate() {
		return Operate;
	}

	public void setOperate(String operate) {
		Operate = operate;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "HappenTime", nullable = false, length = 19)
	public Date getHappenTime() {
		return HappenTime;
	}

	public void setHappenTime(Date happenTime) {
		HappenTime = happenTime;
	}

	@ManyToOne
	@JoinColumn(name="EmployeeID")
	public TEmployee getTEmployee() {
		return TEmployee;
	}

	public void setTEmployee(TEmployee tEmployee) {
		TEmployee = tEmployee;
	}
	
	@Transient
	public String getOperatestr() {
		return Operatestr;
	}

	public void setOperatestr(String operatestr) {
		Operatestr = operatestr;
	}
}
